package com.spark.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 系统配置
 *
 * @author LYCHEE
 * @date 2025/2/18 14:33
 */
@Component
@ConfigurationProperties(prefix = "spark")
public class SparkConfig {

    /**
     * 全局缓存前缀：用户隔离缓存数据
     */
    private static String cachePrefix;

    public static String getCachePrefix() {
        return cachePrefix;
    }

    public void setCachePrefix(String cachePrefix) {
        SparkConfig.cachePrefix = cachePrefix;
    }

}
